<template>
  <Header></Header>
</template>

<script>
import Header from '@/components/Header'
import Footer from '@/components/Footer'
export default {
  name: 'User',
  data () {
    return {
      id: '',
      article: ''
    }
  },
  components: {
    Header,
    Footer
  },
  mounted () {
    // var url = 'http://Ci.com/Api/test'
    var token = window.localStorage.getItem('userinfo')
    console.log(token)
    this.$http({
      method: 'post',
      url: 'http://Ci.com/Api/test',
      headers: {
        token: window.localStorage.getItem('userinfo')
      }
    }).then(
      (backdata) => {
        var res = backdata.data
        console.log(res)
        if (res.code === 200) {
          this.article = res.data
        } else {
          this.$message({
            showClose: true,
            msg: res.msg,
            type: 'error'
          })
        }
      }
    )
  }
}
</script>

<style>
</style>
